import instance from "@/utils/request";
import type{ IResponse } from "@/types/types";


//商品分类
export const RequestCategory = ():Promise<IResponse>=>{
    return instance({
        method:'get',
        url:'/api/category'
    })
}

//商品分类列表
export const RequestGoodsByCategoryId = (categoryId:number):Promise<IResponse>=>{
    return instance({
        method:'get',
        url:'/api/shop/list',
        params:{
           categoryId
        }
       
    })

}
